/**
 * Generation packaging analysis
 * 生成打包分析
 */
import visualizer from 'rollup-plugin-visualizer';
import { isReportMode } from '../utils';

export default function configVisualizerPlugin() {
  return [
    visualizer({
      filename: './stats.html',
      open: false,
      gzipSize: true,
      brotliSize: true
    })
  ];
}
